//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
// 
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
// 

package mysensornetwork.src.mac;
import org.mixim.base.modules.BaseMacLayer;

simple RealTimeSMACLayer extends BaseMacLayer
{
    @class(RealTimeSMACLayer); //Specifil the class name
    bool debug = default(false);
    bool stats = default(true);
    bool trace = default(false);
    
    //**********parameters for smac feature ****************
 	int listen_time = default(500);	//listen time + sleep time = frame time
	int frame_time = default(20000);
		 
	//***********parameter for transmitter*********************. 
	// length of MAC header
    headerLength @unit(bit) = default(72 bit);
    // size of the MAC queue (maximum number of packets in Tx buffer)
    double queueLength = default(10);
    // bit rate 
    double bitrate @unit(bps) = default(19500 bps);        
    // Clear Channel Assessment detection time
    //tx power [mW]
    double txPower @unit(mW);
    // Time to switch radio from Rx to Tx state
    double aTurnaroundTime @unit(s) = default(0.002 s);    // 12 symbols
    
    
       
        
}
